package com.dominator.service;

import com.dominFramework.core.typewrap.Dto;
import com.dominator.utils.api.ApiMessage;
import com.dominator.utils.exception.ApiException;

import javax.servlet.http.HttpServletRequest;

public interface ApiWechatService {



    /**
     * 获取公众号配置
     * @return
     * @throws ApiException
     */
    ApiMessage getWxConfig(Dto dto) throws ApiException;

    /**
     *  获取openId
     * @param pDto
     * @return
     */
    ApiMessage getWxUserOpenId(Dto pDto) throws ApiException;



    /**
     * 微信下单
     * @param pDto
     * @return
     */
    ApiMessage weixinCreateOrder(Dto pDto) throws ApiException;


    /**
     * 微信回调
     * @param request
     * @return
     */
    ApiMessage wexinCallBack(HttpServletRequest request) throws ApiException;

}
